#include <iostream>

using namespace std;

int main(int argc, char * argv[])
{
  int N  = 0;
  float fact, sum;
  cout << "Vvedite chislo N: ";
  cin >> N;
  if (N > 0)
  {
    fact = 1;
    sum = 0;
    for(int i = 1; i <= N; ++i)
    {
      fact = fact * i;
      sum = sum + fact;
    }
     cout<<"sum+fact(N): "<<sum<<endl;
  }
  system("PAUSE>>null");
  return 0;
}
